home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / cpp_libs / brent_cc.lha / brent_cc / vzeroin.dat < prev    next >
Text File  |  1993-08-08  |  673b  |  27 lines

  1.  
  2.  
  3. -------------------------------------------------------------------------------
  4.         Testing the Brent's root finder
  5.  
  6.  
  7. For function x^3 - 2*x - 5,
  8. the root over [2,3] is    2.094551482e+00
  9. Function value at the root found    -1.7764e-15
  10. No. of iterations        10
  11. Exact root is         2.0945514815
  12.  
  13. For function cos(x)-x,
  14. the root over [2,3] is    2.000000000e+00
  15. Function value at the root found    -2.4161e+00
  16. No. of iterations        51
  17.  
  18. For function cos(x)-x,
  19. the root over [-1,3] is    7.390851332e-01
  20. Function value at the root found    -5.1283e-17
  21. No. of iterations        11
  22.  
  23. For function sin(x)-x,
  24. the root over [-1,3] is    -4.906842729e-12
  25. Function value at the root found    0.0000e+00
  26. No. of iterations        70
  27.